package com.wboot01.controller;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.wboot01.config.AdminProperties;
import com.wboot01.config.TestApplicationProps;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

  @Autowired
  private AdminProperties adminProperties;

  @Autowired
  private TestApplicationProps applicationProps;

  @RequestMapping("/admin")
  public Object test() throws Exception {
    return applicationProps;
  }

}
